package com.cloud.model.entity.wxuser;

import com.cloud.model.entity.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

/**
 * <b><code>WxUser</code></b>
 * <p/>
 * WxUser的具体实现
 * <p/>
 * <b>Creation Time:</b> 2019-10-15 16:15:58.
 *
 * @author ${model.author}
 * @version 1.0.0
 * @since cloud-spring-boot-be 1.0.0
 */
@Entity
@Table(name="t_wx_user")
@DynamicInsert
@DynamicUpdate
public class WxUser extends BaseEntity implements Serializable {

    /**
    * The constant serialVersionUID.
    */
    private static final long serialVersionUID = -1L;

    @Column(name = "open_id")
    @ApiModelProperty(value = "微信openId")
    private String openId;

    @Column(name = "username")
    @ApiModelProperty(value = "用户名")
    private String username;

    @Column(name = "nick_name")
    @ApiModelProperty(value = "用户微信昵称")
    private String nickName;

    @Column(name = "phone")
    @ApiModelProperty(value = "电话")
    private String phone;

    @Column(name = "avatar_url")
    @ApiModelProperty(value = "微信头像地址")
    private String avatarUrl;

    @Column(name = "rights")
    @ApiModelProperty(value = "用户权限 0：管理员，1：用户")
    private Integer rights;

    @Column(name = "login_end_time")
    @ApiModelProperty(value = "用户最后一次登录时间")
    private Long loginEndTime;

    @Column(name = "month_budget")
    @ApiModelProperty(value = "月预算")
    private Long monthBudget;

    @Column(name = "send_message")
    @ApiModelProperty(value = "发送模板消息")
    private Integer sendMessage;

    public Integer getSendMessage() {
        return sendMessage;
    }

    public void setSendMessage(Integer sendMessage) {
        this.sendMessage = sendMessage;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Integer getRights() {
        return rights;
    }

    public void setRights(Integer rights) {
        this.rights = rights;
    }

    public Long getLoginEndTime() {
        return loginEndTime;
    }

    public void setLoginEndTime(Long loginEndTime) {
        this.loginEndTime = loginEndTime;
    }

    public Long getMonthBudget() {
        return monthBudget;
    }

    public void setMonthBudget(Long monthBudget) {
        this.monthBudget = monthBudget;
    }

    public WxUser(){
        super();
    }

}
